PostScript Glyphs Structure
QuickDraw GX constructs the PostScript glyphs structure, of data typegxPrinterGlyphsRec
, so a driver can communicate with the imaging system about the fonts and glyphs that are available on a printer. This structure is used by theGXPostScriptGetPrinterGlyphsInformation
message, which is described on page 4-116.
struct gxPrinterGlyphsRec { gxFont theFont; long nGlyphs; gxFontPlatform platform; gxFontScript script; gxFontLanguage language; long vmUsage; unsigned long glyphBits[1]; }; typedef struct gxPrinterGlyphsRec gxPrinterGlyphsRec;You can read about font glyphs, platforms, scripts, and languages in Inside Macintosh: QuickDraw GX Typography.
Field Description
theFont
- The font that this information is for.
nGlyphs
- The number of glyphs that the font contains.
platform
- The platform of the font.
script
- The script code of the font. This value has no meaning if the value of the
platform
field is -1.language
- The language code of the font. This value has no meaning if the value of the
platform
field is -1.vmUsage
- The amount of printer memory required for the font.
glyphBits
- A variable-sized array containing the data for the glyphs. This array must be aligned on a long word boundary. Its size in long words can be computed by the formula:
(nGlyphs + 31) / 32
.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help